import api from '@/common/api.js'
 

export default {
	 
	new_socket_data({commit}, data) { 
	  commit('new_socket_data', data)
	},
	
	async getUserInfo({commit},data){  
		let res = await api.user_api.userInfo({
			id:data.id
		}); 
		console.log(res)
		if (res.data.code == 200) { 
			uni.setStorage({
				key:'userInfo',
				data:res.data.data
			}) 
		}
	}


}
